<!DOCTYPE html>
<html lang="en" style="height: 100%">
<head>
    <meta charset="UTF-8">
    <script src="http://10.139.7.230:8080/rap.plugin.js?projectId=10"></script>
    <title>Title</title>
    <link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="../vendors/bootstrap/dist/css/bootstrap-menu.css">
    <script src="../vendors/jquery/dist/jquery.min.js"></script>
    <script src="../vendors/bootstrap/dist/js/bootstrap.js"></script>
    <script src="../vendors/bootstrap/extend/DT_bootstrap.min.js"></script>
    <script src="../vendors/bootstrap/extend/Menu_Bootstrap.min.js"></script>
    <script src="../vendors/jquery/dist/jquery.cookie.js"></script>

</head>
<body style="height: 100%">
<div class="row" style="width:100%;height: 100%">
    <div  id="Meunshow" class="col-md-2" style="border: 1px solid #333; height: 100%;">

    </div>
    <div class="col-md-10" style="border-bottom: 1px solid #333; height: 100%;">
        <iframe src="kuber_namespacelist.html" id="iframe2" name="iframe2" width="100%" style="height: 100%" scrolling="no" frameborder="0"></iframe>

    </div>
</div>
</div>
<script type="text/javascript">
    $(function () {
        dataload()
    })
    function timedMsg()
    {
        setTimeout( "dataload()",200);
    }
    function  dataload() {
        var res='[{"Image":"glyphicon-file","Isopen":false,"Viewurl":"kuber_namespacelist.html","Name":"环境","Children":[{"Image":"glyphicon-triangle-right","Isopen":false,"Viewurl":"kuber_envir.html?envirId\\u003db7bea9b6-352e-11e7-a5cf-000c29b7a2dd","Name":"aaa"},{"Image":"glyphicon-triangle-right","Isopen":false,"Viewurl":"kuber_envir.html?envirId\\u003d615c19d1-ffe5-11e6-9793-000c29b7a2dd","Name":"default"},{"Image":"glyphicon-triangle-right","Isopen":false,"Viewurl":"kuber_envir.html?envirId\\u003d4d5858bb-348a-11e7-a5cf-000c29b7a2dd","Name":"gghh"},{"Image":"glyphicon-triangle-right","Isopen":false,"Viewurl":"kuber_envir.html?envirId\\u003df8f128a3-2983-11e7-a5cf-000c29b7a2dd","Name":"haha"},{"Image":"glyphicon-triangle-right","Isopen":false,"Viewurl":"kuber_envir.html?envirId\\u003d615e60ef-ffe5-11e6-9793-000c29b7a2dd","Name":"kube-system"},{"Image":"glyphicon-triangle-right","Isopen":false,"Viewurl":"kuber_envir.html?envirId\\u003d8d1f5f06-352d-11e7-a5cf-000c29b7a2dd","Name":"wwww"}]},{"Image":"glyphicon-th","Isopen":false,"Viewurl":"kuber_image.html","Name":"镜像"},{"Image":"glyphicon-retweet","Isopen":false,"Viewurl":"kuber_machine.html","Name":"基础架构","Children":[{"Image":"glyphicon-tasks","Isopen":false,"Viewurl":"kuber_machine.html","Name":"主机"},{"Image":"glyphicon-modal-window","Isopen":false,"Viewurl":"kuber_container.html","Name":"容器"}]}]'
        res=JSON.parse(res);
        var storage = window.localStorage;
        var a2 = storage.kuberenvir;
        a2=JSON.parse(a2);
        var arr=new Array();
        for (var i=0;i<a2.Data.length;i++)
        {
            var obj=new Object();
            obj.Image="glyphicon-triangle-right";
            obj.Isopen=false;
            obj.Viewurl="kuber_envir.html?envirId="+a2.Data[i].uid+"&namespace="+a2.Data[i].name;
            obj.Name=a2.Data[i].name;
            arr.push(obj);
        }
        res[0].Children=arr;
        $("#Meunshow").Meunz(res);
      /* $.ajax({
            type: "post",
            url: "/api/kuberservice/getmeun",
            success: function (res) {
                res=JSON.parse(res);
                $("#Meunshow").Meunz(res);
            }
        })*/
    }
    function  changiframe1 (){
        var ifm= document.getElementById("iframe");
    };
</script>
</body>
</html>